import { useContext } from 'react'
import GlobalVarContext from '@/context';

const useGlobalVar = () => {
    const { groupId, categories, group, user, refetchUser, isNoticeNew, refetchNoticeStatus } = useContext(GlobalVarContext);

    return {
        categories,
        groupId,
        group,
        user,
        refetchUser,
        isNoticeNew,
        refetchNoticeStatus
    }
}
export default useGlobalVar
